<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Delete_stock
 *
 * @author admin
 */
class delete_stock extends MY_Controller {

    public function __construct() {
        parent::__construct();
        $this->load->model('stock_model');
    }

    public function index() {
        $id = $this->input->get('id');
        $this->stock_model->delete_stock($id);
        redirect('stock/home');
    }

}
